<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>编辑文章</title>

</head>
<body>
<button th:onclick="getData()">获取内容</button>
<div id="editor">



</div>

</body>
<script th:src="@{/static/ckeditor/ckeditor.js}"></script>
<script>
    CKEDITOR.replace( 'editor');
    function getData(){
    var content = CKEDITOR.instances.editor.getData(); //获取值
     console.log(content);
    }

</script>
</html>